
package com.monlyu.vo;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Transient;

import com.monlyu.annotation.Comment;

@Entity(name = "t_solutionItem")
public class SolutionItem extends BaseVo {

    @Id
    @Column(name = "c_id")
    @Comment(common = "自增编号")
    private Long id;

    @Column(name = "c_pageNo", length = MAX_VCHAR_MYSQL)
    @Comment(common = "页码标签")
    private String pageNo;

    @Column(name = "c_colum", length = MAX_VCHAR_MYSQL)
    @Comment(common = "栏目")
    private String colum;

    @ManyToOne
    @JoinColumn(name = "c_editor")
    @Comment(common = "编辑者")
    private User editor;

    @ManyToOne
    @JoinColumn(name = "s_solution")
    @Comment(common = "编辑方案")
    private Solution solution;

    @Column(name = "s_order", nullable = false)
    @Comment(common = "顺序")
    private int order;

    @Column(name = "s_content", length = 1000)
    @Comment(common = "特殊内容")
    private String content;

    @Transient
    private List<SolutionContent> contents;

    @Transient
    private String userList;

    public void setUserList(String userList){
        this.userList = userList;
    }

    public String getUserList(){
        return userList;
    }

    public List<SolutionContent> getContents(){
        return contents;
    }

    public void setContents(List<SolutionContent> contents){
        this.contents = contents;
    }

    public String getContent(){
        return content;
    }

    public void setContent(String content){
        this.content = content;
    }

    public int getOrder(){
        return order;
    }

    public void setOrder(int order){
        this.order = order;
    }

    public Solution getSolution(){
        return solution;
    }

    public void setSolution(Solution solution){
        this.solution = solution;
    }

    public Long getId(){
        return id;
    }

    public void setId(Long id){
        this.id = id;
    }

    public String getPageNo(){
        return pageNo;
    }

    public void setPageNo(String pageNo){
        this.pageNo = pageNo;
    }

    public String getColum(){
        return colum;
    }

    public void setColum(String colum){
        this.colum = colum;
    }

    public User getEditor(){
        return editor;
    }

    public void setEditor(User editor){
        this.editor = editor;
    }

}
